﻿using System.Collections.ObjectModel;
using YKXiangQi.Models;

namespace YKXiangQi.ViewModels
{
    public class HistoryViewModel: DockableViewModel
    {
        public HistoryViewModel()
        {
            Title = "History";
        }

        private ObservableCollection<MoveDetails> _moveDetailsList;
        public ObservableCollection<MoveDetails> MoveDetailsList
        {
            get { return _moveDetailsList; }
            set
            {
                _moveDetailsList = value;
                RaisePropertyChanged(() => MoveDetailsList);
            }
        }

        private MoveDetails _selectedItem;
        public MoveDetails SelectedItem
        {
            get { return _selectedItem; }
            set
            {
                _selectedItem = value;
                RaisePropertyChanged(() => SelectedItem);
            }
        }
    }
}
